package club.banyuan.fighter.skill;

import club.banyuan.fighter.Fighter;

/**
 * 给自己恢复生命值
 */
public class RecoverSkill implements Skill {

  public RecoverSkill() {
  }

  @Override
  public void spell(Fighter from, Fighter to) {
    to.setHp(to.getHp()+200);
    System.out.println(from.getName() + "为"+ to.getName() +"使用金创药，恢复200点生命值。剩余血量"+to.getHp()+",冷却时间3回合。");
    //from.setRound(0);
  }

  @Override
  public boolean coolDown(Fighter fighter) {
    return fighter.getRound() % 4 == 0;
  }

  @Override
  public void nextRound() {

  }
}
